//
//  XIImage.m
//  XIEngine
//
//  Created by Bazsi on 20.09.09.
//  Copyright 2009 Universität Basel. All rights reserved.
//

#import "XIImage.h"


@implementation XIImage

+ (XIImage *)newImageFromResource:(NSString *)filename
{
    NSString *imageFile = [[NSString alloc] initWithFormat:@"%@/%@", [[NSBundle mainBundle] resourcePath], filename];
    XIImage *image = [[XIImage alloc] initWithContentsOfFile:imageFile];
    [imageFile release];
    return image;
}

@end
